<link rel="icon" href="<?= $this->baseUrl?>images/efy.ico" type="image/x-icon" />
<form action="index" method="POST" name="frmLogin" style="vertical-align:top">	
<?php echo $this->formHidden("hdn_option","",null); ?>
	    <?php echo $this->formHidden("hdn_autorem","0",null); ?>	
	    <?php
		$arrConst = $this->arrConst;
		$sUrlEdit  = "../edit/";
		$hdhOption= $this->hdh_option;
		$sUserName= $this->txt_usename;
		$sPassWord= $this->txt_password; 		
		//$sUserNameTemp = $this->sUserNameTemp;	
		/*function getRealIpAddr() 
		{    
		    if (!empty($_SERVER['HTTP_CLIENT_IP']))   //check ip from share internet    
		    {      
		         $ip=$_SERVER['HTTP_CLIENT_IP'];    
		    }     
		    elseif (!empty($_SERVER['HTTP_X_FORWARDED_FOR']))   //to check ip is pass from proxy   
		    {    
		         $ip=$_SERVER['HTTP_X_FORWARDED_FOR'];  
		    }   
		    else   
		    {      
		         $ip=$_SERVER['REMOTE_ADDR'];    
		    }   
		    return $ip; 
		}
		$v_ip_address = getRealIpAddr();	
		$remotehost = @getHostByAddr($v_ip_address);
		echo $remotehost;
		echo php_uname();
		echo php_uname('n');	
		*/		
	?>
<div class="body_login" align="center" style="vertical-align:top">

    			<div class="banner_login"></div>
                
                
                <div class="center_login">
                				<div class="left_center_login"></div>
                                <div class="center_center_login">
                                			<div class="img_linesh">  
                                         		<!--slide anh-->
                                                	<div id="container">
                                                                <div id="lofslidecontent45" class="lof-slidecontent" style="width:450px; height:300px; ">
                                                                
                                                                <div class="preload"><div></div></div>
                                                                
                                                                 <!-- MAIN CONTENT --> 
                                                                
                                                                  <div class="lof-main-outer" style="width:450px; height:300px;">
                                                                
                                                                    <div onclick="return false" href="" class="lof-previous">Previous</div>
																			<ul class="lof-main-wapper">
                                                                               <li>
                                                                                  <img src="<? echo $this->baseUrl.'images/a1.jpg' ?>" title="uy ban nhan dan quan" >           
                                                                                        
                                                                               </li> 
                                                                               <li>
                                                                                  <img src="<? echo $this->baseUrl.'images/a2.jpg' ?>" title="cau binh" >           
                                                                                     
                                                                                </li> 
                                                                               <li>
                                                                                  <img src="<? echo $this->baseUrl.'images/a3.jpg'?>" title="Newsflash 3" >            
                                                                                  
                                                                                </li> 
                                                                                <li>
                                                                        
                                                                                  <img src="<? echo $this->baseUrl.'images/a4.jpg'?>" title="Newsflash 4" >            
                                                                                    
                                                                                </li> 
                                                                                
                                                                                <li>
                                                                                  <img src="<? echo $this->baseUrl.'images/a5.jpg'?>" title="Newsflash 5" >            
                                                                                    
                                                                                </li> 
                                                                                <li>
                                                                        
                                                                                  <img src="<? echo $this->baseUrl.'images/a6.jpg'?>" title="Newsflash 6" >            
                                                                                    
                                                                                </li> 
                                                                                 <li>
                                                                                  <img src="<? echo $this->baseUrl.'images/a7.jpg'?>" title="Newsflash 7" >            
                                                                                    
                                                                                </li> 
                                                                                  <li>
                                                                                  <img src="<? echo $this->baseUrl.'images/a8.jpg'?>" title="Newsflash 8" >            
                                                                                    
                                                                                </li> 
                                                                               
                                                                                  <li>
                                                                                  <img src="<? echo $this->baseUrl.'images/cmnm.jpg'?>" title="Newsflash 10" >            
                                                                                    
                                                                                </li> 
                                                                              </ul>  	
                                                                    <div onclick="return false" href="" class="lof-next">Next</div>
                                                            
                                                              </div>
                                                            
                                                             </div>
                                                            
                                                                </div>
                                         
                                         		<!--end code slide-->		
                                                                                                                                    				
                                            </div>
                                            <div class="frlogin">
                                            
                                            	<table width="90%" align="right" border="0"  id="table_fr" style="margin-bottom:10px;">
                                                     
                                                                                                            
                                                                               <!--Username-->
                                                              <tr>
                                                                <td  class="normal_label_login" align="left" ><?=$arrConst['_TEN_DANG_NHAP'];?> </td>
                                                              </tr>
                                                              <tr>
                                                                   <td align="left"><input type="text" align= "center" style="width:90%;" id="txt_usename" name="txt_usename" size="50" value="<?=$this->txt_usename;?>"  option = "false" class="textbox normal_label" message="Ph?i nh?p tên dang nh?p!" onKeyDown="change_focus_in_login(document.forms['frmLogin'],this,event)">
                                                                   </td>
                                                              </tr>
                                                              <tr>
                                                                <td class="normal_label_login" align="left"><?=$arrConst['_MAT_KHAU'];?> </td>
                                                              </tr>
                                                              <tr>
                                                                    <td align="left"><input type="password" align= "center" style="width:90%" id="txt_password" name="txt_password" size="50" value="<?=$this->txt_password;?>"  option = "false" class="textbox normal_label" message="Ph?i nh?p m?t kh?u!" onKeyDown="change_focus_in_login(document.forms['frmLogin'],this,event)"></td>
                                                              </tr>
                                                         <tr>
                                                           <td height="25" align="left" valign="top" class="ghi_nho_mk" ><input type="checkbox" optional = "true" name="ghinhomatkhau"  id="ghinhomatkhau" onKeyDown="change_focus_on_firefox(document.forms['frmLogin'],this,event)" /><label for="ghinhomatkhau" style="cursor:pointer; font:Arial; font-size:11px; color:#b70002; ">Ghi nh&#7899; &#273;&#259;ng nh&#7853;p </label></td>
                                                         </tr>
                                                              <tr >
                                                                    <td  align="center" class="body"  ><?php
                                                                                                //Dang nhap
                                                                                                echo $this->formButton("btn_save",$arrConst['_DANG_NHAP'],array("type"=>"button","class"=>"add_dn_button1","onClick"=>"btn_save_onclick();", "onKeyDown"=>"change_focus_in_login(document.forms['frmLogin'],this,event)")). "&nbsp;";	
                                                                                                //Quay lai
                                                                                                $urlRe = $this->baseUrl . "../login/";
                                                                                                 "&nbsp;";?>
                                                                </td>
                                                        </tr>
                                                       
                                                                                               
                                                      </table> 	
                                                       </div>
                                                       <div class="line"></div>
                                                       <div class="help">
                                                       <p class="text_footer txtfooter1 ">Hỗ trợ kỹ thuật </p>
                                                                  <p class="text_footer txtfooter2">Hotline: 04.62872290 ext 2</p>
                                                                  <p class="text_footer txtfooter3">Email: tech@efy.com.vn</p>
                                                               
                                                       
                                                       </div>
                                                       
                                  			
                                
                                		
                                         
                                              
                                                                                                   
                                </div>
                              	<div class="right_center_login"></div>
                					
                                    
                
                </div>
                              
                                
                <div class="footer_login"></div>
                
                
                                      
                
            


</div>





</form>
<div align="left"></div>
<script language="JavaScript">

if(document.getElementById('txt_usename').value ==''){
	document.getElementById('txt_usename').focus();	
}else{
	document.getElementById('txt_password').focus();
	document.getElementById('txt_password').select();
}
shortcut.add("Ctrl+K",function() {
	document.getElementById('txt_password').focus();
	document.getElementById('txt_password').select();
});
window.dialogHeight = "270pt";
window.dialogWidth = "420pt";
window.dialogTop = "80pt"; 
function btn_save_onclick(){
	if (verify(document.forms[0])){
		document.forms[0].hdn_option.value = "1";
		if(document.forms[0].ghinhomatkhau.checked){
			document.forms[0].hdn_autorem.value = '1';
		}
		actionUrl('');
		}
	}
var x='';
function handler(e){
//IE return :event.keyCode; FF return : e.which;
var x=(window.event)?event.keyCode:e.which;
if (x==13){ //Enter
//btn_enrollment_wait('');
}
}
if (!document.all){
window.captureEvents(Event.KEYPRESS);
window.onkeypress=handler;
}else{
document.onkeypress = handler;
} 
if(<?=$this->sCheckReme?>){
	document.forms[0].ghinhomatkhau.checked = true;	
}else{
	document.forms[0].ghinhomatkhau.checked = false;
}
</script>
